{{ include('niubaobao/headerLayui.html') }}
{{ include("niubaobao/nav.html")}}

<link rel="stylesheet" href="../addons/db/resource/css/db.css">


{{ include("common/nav.html")}}
<style>
    .setting{width:60%; margin:0 auto;}
</style>
<!-- 示例-970 -->
<div class="setting">
    <fieldset class="layui-elem-field layui-field-title" >
        <legend>mysql数据库配置</legend>
    </fieldset>
    <form class="layui-form layui-form-pane " action="{{ _G['APP_URL'] }}?m=db&c=index&a=setting" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">数据库地址</label>
            <div class="layui-input-block">
                <input type="text" name="db_path"  lay-verify="required" autocomplete="off" value="{{data.db_path}}" placeholder="数据库地址" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">请务必确认防火墙是否阻止此ip地址链接数据库{{ip}}</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数据库名字</label>
            <div class="layui-input-inline">
                <input type="text" name="db_name" value="{{data.db_name}}" lay-verify="required" placeholder="请输入数据库名" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-inline">
                <input type="text" name="name" value="{{data.name}}" lay-verify="required" placeholder="请输入数据库名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数据库类型</label>
            <div class="layui-input-inline">
                <select name="db_type" lay-verify="">
                    <option value="mysql">mysql</option>

                </select>
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-inline">
                <input type="password" name="password"  value="{{data.password}}" lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>

        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">端口号</label>
            <div class="layui-input-inline">
                <input type="text" name="port" value="{{data.port}}" lay-verify="required" placeholder="请输入端口号" autocomplete="off" class="layui-input">
            </div>
        </div>




        <div class="layui-form-item">
            <input type="submit" name="submit"  value="提交" class="layui-btn" lay-submit="" lay-filter="demo2">
        </div>
    </form>

</div>


{{ include('common/footer.html') }}
